<template>
  <div class="nav transparentNav">
    <div class="nav-left"><router-link tag="a" target="_blank" to="/"><span class="fontHt nav-span">首页</span></router-link>
      <router-link tag="a" target="_blank" to="/"><span class="fontHt nav-span">暮迟的避难所</span></router-link>
      <router-link tag="a" target="_blank" to="/"><span class="fontHt nav-span">番剧</span></router-link>
    </div>
    <div class="nav-right">
      <div class="loginImg">
        <img src="http://mcgamehome.love/img2/BIL/4.jpeg" alt="http://mcgamehome.love/img2/BIL/4.jpeg">
      </div>
      <div class="loginMsg">
        <div class="nav-icon">
          <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" class="right-entry-icon"><path d="M15.435 17.7717H4.567C2.60143 17.7717 1 16.1723 1 14.2047V5.76702C1 3.80144 2.59942 2.20001 4.567 2.20001H15.433C17.3986 2.20001 19 3.79943 19 5.76702V14.2047C19.002 16.1703 17.4006 17.7717 15.435 17.7717ZM4.567 4.00062C3.59327 4.00062 2.8006 4.79328 2.8006 5.76702V14.2047C2.8006 15.1784 3.59327 15.9711 4.567 15.9711H15.433C16.4067 15.9711 17.1994 15.1784 17.1994 14.2047V5.76702C17.1994 4.79328 16.4067 4.00062 15.433 4.00062H4.567Z" fill="currentColor"></path><path d="M9.99943 11.2C9.51188 11.2 9.02238 11.0667 8.59748 10.8019L8.5407 10.7635L4.3329 7.65675C3.95304 7.37731 3.88842 6.86226 4.18996 6.50976C4.48954 6.15544 5.0417 6.09699 5.4196 6.37643L9.59412 9.45943C9.84279 9.60189 10.1561 9.60189 10.4067 9.45943L14.5812 6.37643C14.9591 6.09699 15.5113 6.15544 15.8109 6.50976C16.1104 6.86409 16.0478 7.37731 15.6679 7.65675L11.4014 10.8019C10.9765 11.0667 10.487 11.2 9.99943 11.2Z" fill="currentColor"></path></svg>
        </div>
        <span class="fontHt">消息</span>
      </div>
      <div class="loginCollect">
        <div class="nav-icon">
          <svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg" class="right-entry-icon"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.0505 3.16759L12.7915 6.69573C12.954 7.02647 13.2702 7.25612 13.6349 7.30949L17.5294 7.87474C18.448 8.00817 18.8159 9.13785 18.1504 9.78639L15.3331 12.5334C15.0686 12.7905 14.9481 13.1609 15.0104 13.5256L15.6759 17.4031C15.8328 18.3184 14.8721 19.0171 14.0497 18.5845L10.5661 16.7537C10.2402 16.5823 9.85042 16.5823 9.52373 16.7537L6.04087 18.5845C5.21848 19.0171 4.2578 18.3184 4.41468 17.4031L5.07939 13.5256C5.14166 13.1609 5.02198 12.7905 4.75755 12.5334L1.9394 9.78639C1.27469 9.13785 1.64182 8.00817 2.56126 7.87474L6.4549 7.30949C6.82041 7.25612 7.13578 7.02647 7.29832 6.69573L9.04015 3.16759C9.45095 2.33468 10.6389 2.33468 11.0505 3.16759Z" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M11.603 11.8739C11.413 12.5556 10.7871 13.0554 10.0447 13.0554C9.29592 13.0554 8.66679 12.5467 8.48242 11.8569" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path></svg>
        </div>
        <span class="fontHt">收藏</span>
      </div>
      <div class="loginHistory">
        <div class="nav-icon">
          <svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg" class="right-entry-icon"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 1.74286C5.02955 1.74286 1 5.7724 1 10.7429C1 15.7133 5.02955 19.7429 10 19.7429C14.9705 19.7429 19 15.7133 19 10.7429C19 5.7724 14.9705 1.74286 10 1.74286ZM10.0006 3.379C14.0612 3.379 17.3642 6.68282 17.3642 10.7426C17.3642 14.8033 14.0612 18.1063 10.0006 18.1063C5.93996 18.1063 2.63696 14.8033 2.63696 10.7426C2.63696 6.68282 5.93996 3.379 10.0006 3.379Z" fill="currentColor"></path><path d="M9.99985 6.6521V10.743" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"></path><path d="M12.4545 10.7427H10" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"></path></svg>
        </div>
        <span class="fontHt">历史</span>
      </div>
      <div class="loginBox">
        <button type="button" @click="closeBox" class="login fontHt">登录</button>
      </div>
    </div>
  </div>
</template>

<script setup>
import {computed, onMounted, reactive, ref, toRaw, watch} from "vue";
import API from "@/api/AxiosConfig";
import {useCookies} from "@vueuse/integrations/useCookies";
import {useStore} from "vuex";

const store = useStore()
let loginIndex = computed(() => {return store.state.loginIndex})

</script>

<style lang="less" scoped>
input::-ms-clear, input::-ms-reveal {
  display: none;
}
.BZDQSMMZ{
  display: flex;
  justify-content: center;
  padding: 35px 0 ;
}
.loginButton{
  background: #00aeec;
  border-radius: 6px;
  outline: none;
  border: none;
  width: 45%;
  height: 45px;
  color: #FFFFFF;
  opacity: 0.5;
  cursor: not-allowed;
}
.s{
  width: 1px;
  height: 50px;
  background-color: #e3e5e7;
}
.loginName{
  display: flex;
  justify-content: center;
  margin-bottom: 35px;
  flex-wrap: wrap;
  align-content: center;
}
.loginNameSpan{
  font-size: 25px;
  margin: 6px 25px;
  cursor: pointer;
}
.x-lg{
  position: absolute;
  right: 20px;
  top: 20px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.eye{
  position: absolute;
  right: 15px;
  top: 30%;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.inputBox{
  display: flex;
  position: relative;
}
.inputSpan{
  padding: 15px 5px 15px 20px;
}
.fromBox{
  display: flex;
  flex-direction: column;
  border: 1px solid #e3e5e7;
  border-radius: 8px;
  overflow: hidden;
  width: 70%;
  flex-shrink: 0;
}
.zw{
  width: 100%;
  height: 1px;
  background-color: #e3e5e7;
}
.loginInput{
  outline: none;
  padding: 5px 40px 5px 15px;
  border-radius: 4px;
  border: none;
  //width: 100%;
  height: 40px;
  flex: 1;
  font-size: 16px;
}
.loginBoxWaike{
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.3);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  overflow: hidden;
  justify-content: center;
  flex-wrap: wrap;
  display: flex;
  align-content: center;
}
.loginBoxs{
  width: 920px;
  height: 450px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  background-color: #fff;
  position: relative;
}
.boxLeft{
  background-color: deeppink;
  flex: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
  flex-direction: column;
  text-align: center;
  color: #fff;
}
.boxRight{
  flex: 3;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
  flex-direction: column;
}
.fontHt{
  font-family:黑体;
  font-weight: bold;
}
.activeButton{
  opacity: 1;
  cursor: pointer;
}
.active{
  color: #4fa5d9;
  cursor: not-allowed;
}
a{
  text-decoration: none;
  color: black;
}
.clearSpan{
  position: absolute;
  flex: 0;
  right: 5px;
  top: 5px;
  display: none;
}
.searchBox{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
}
.searchBoxOne{
  width: 500px;
  height: 40px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  background-color: #F1F2F3;
  border-radius: 6px;
  padding: 0;
  flex-direction: row;
}
.searchSvg{
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  padding: 5px 15px;
  cursor: pointer;
}
.inputBox{
  display: flex;
  flex: 1;
  position: relative;
}
.inputUp{
  //width: 100%;
  border: none;
  padding: 5px 25px 5px 5px;
  outline: none;
  vertical-align: middle;
  border-radius: 4px;
  margin-left: 10px;
  flex: 1;
  background-color: transparent;
}
.nav-icon{
  display: flex;
  justify-content: center;
}
.nav-icon>svg{
  width: 24px;
  height: 24px;
}
.loginMsg,.loginCollect,.loginHistory{
  padding: 0 10px;
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  user-select: none;
  color: #61666D;
  font-size: 14px;
}
.nav-right,.nav-right>div,.nav-left,.nav-left>div{
  display: flex;
  flex-wrap: wrap;
  align-content: center;
}
.login{
  border: none;
  background-color: #2d8cf0;
  color: white;
  width: 70px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  border-radius: 4px;
  margin-left: 30px;
}
.loginImg>img{
  width: 40px;
  height: 40px;
  border-radius: 50px;
  border: 3px solid white;
}
.loginImg{
  margin-right: 20px;
}
.fontHt{
  font-family: "黑体";
  font-weight: bold;
}
.nav-span{
  margin-right: 30px;
  color: #61666D;
}
.nav{
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
}
.transparentNav{
  background: #fff;
  box-shadow: 0 2px 4px #00000014;
}
</style>
